

Replication files for Novaes, LM and L Schiumerini "Commodity shocks and incumbency effects" - British Journal of Political Science

------------
Instructions
------------

You need R and associated packages to replicate the results in each script.

The replication files contain:

Scripts:
tables.r - replicates all tables
figures.r - replicates all figures
plot_time_series.r - replicates Figure 1 in the SI
balance_tests.r - replicates balance tests
councilors.r - replicates councilor analysis in the SI

Datasets
replication_data.RData - used in tables.r and figures.r
ver.RData - used in councilors.r
pricesQuandl_2016.RData - used in plot_time_series.r
codebook.csv - describes variables in replication_data.RData

Replication was performed using a machine with the following specs:

# platform       x86_64-apple-darwin17.0     
# arch           x86_64                      
# os             darwin17.0                  
# system         x86_64, darwin17.0          
# status                                     
# major          4                           
# minor          0.2                         
# year           2020                        
# month          06                          
# day            22                          
# svn rev        78730                       
# language       R                           
# version.string R version 4.0.2 (2020-06-22)
# nickname       Taking Off Again  
